<div class="child-box">
    <div class="layui-card layadmin-header">
        <div class="layui-breadcrumb" lay-filter="breadcrumb">
            <a href="javascript:" lay-href=""> <i class="iconfont iconhome"></i>首页</a>
            <a><cite>我的财务</cite></a>
            <a><cite>我的退款</cite></a>
            <div class="layui-card-header-left" title="刷新" zmark-event="layui.manage.render">
                <i class="layui-icon layui-icon-refresh layui-anim" zmark-anim="layui-anim-rotate"></i>
            </div>
        </div>
    </div>
    <div class="layui-card mt20">
        <div class="layui-card-body table-box">
            <form class="layui-form" method="post" id="form-refund-list" onsubmit="return false" lay-filter="form-refund-list">
                <input type="hidden" name="clientStatusId"/>
                <input type="hidden" name="dateCreatedStart"/>
                <input type="hidden" name="dateCreatedEnd"/>
                <div class="layui-row block pb10">
                    <ul class="extra-l fl" id="queryStatus">
                        <li><a href="javascript:" class="curr" status="">全部</a></li>
                        <li><a href="javascript:" status="waitExamine">待审核</a></li>
                        <li><a href="javascript:" status="waitRefund">待退款</a></li>
                        <li><a href="javascript:" status="refunded">已退款</a></li>
                        <li><a href="javascript:" status="toVoid">已作废</a></li>
                        <li class="fore2">
                            <div class="search-box" style="width: 420px">
                                <input type="text" name="docNo" class="layui-input" placeholder="退款单号" style="width: 368px" />
                                <button type="submit" class="layui-btn" lay-submit="" lay-filter="search-refund-list"><i class="layui-icon layui-icon-search"></i></button>
                            </div>
                        </li>
                        <li>
                            可退款金额为¥ <span id="refund-avaliable-refund">0.00</span>
                        </li>
                    </ul>
                    <div class="fr">
                        <button type="button" class="layui-btn" id="refund-apply-btn" disabled zmark-event="layui.refundList.apply">退款申请</button>
                    </div>
                </div>
                <div class="layui-row">
                    <table class="zm-tab order-tab" id="tab-refund-list">
                        <colgroup>
                            <col width="160">
                            <col>
                            <col width="160">
                            <col width="120">
                            <col width="120">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>
                                <div class="more-operation" zmark-more-operation="layui.refundList.setDate" id="refund-list-date">
                                    <div class="more-operation-txt"><div></div><b></b><span class="blank"></span></div>
                                    <div class="more-operation-list">
                                        <ul></ul>
                                    </div>
                                </div>
                            </th>
                            <th>收款方信息</th>
                            <th>退款金额</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                    </table>
                    <div class="blank-list">
                        <i class="iconfont iconwushuju"></i>
                        <dd>无退款单数据</dd>
                    </div>
                    <div class="zm-pagination">
                        <div id="refund-list-pagination"></div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/html" id="tpl-refund-list">
    {{# layui.each(d,function(i,o){ }}
    <tbody>
    <tr class="sep-row">
        <td colspan="7"></td>
    </tr>
    <tr class="tr-th">
        <td colspan="6">
            <span class="mr30 ml10"><a href="javascript:" title="{{o.docNo}}" class="copy">{{o.docNo}}</a></span>
            <span>申请时间：</span>
            <span class="mr30 color-black">{{o.dateCreated}}</span>
            <span>收款账号：</span>
            <span class="color-black">{{o.payeeBankAccountNo}}</span>
            <div class="tr-operate">
                
            </div>
        </td>
    </tr>
    <tr class="tr-tb">
        <td colspan="2">
            <div class="goodsitem">
                <div class="layui-row">收款行：{{o.payeeBankName}}</div>
                <div class="layui-row">收款行地址：{{o.payeeBankAddress}}</div>
            </div>
        </td>
        <td>
            <div class="amount">
                <span>¥ {{layui.com.formatCurrency(o.accountValue)}}</span>
            </div>
        </td>
        <td>
            <div class="layui-row order-speed" speed="{{layui.refundList.judstatus(o.clientStatusId)}}">
                <i class="iconfont iconxiangyou"></i>
                <i class="iconfont iconxiangyou"></i>
                <i class="iconfont iconxiangyou"></i>
            </div>
            <div class="layui-row {{o.clientStatusId}}">{{o.clientStatusDesc}}</div>
        </td>
        <td>
            {{# if(o.clientStatusId == 'refunded'){ }}
            <a class="zm-hide" refund-receipt="{{o.id}}" target="_blank">查看水单</a>
            {{# }else if(o.clientStatusId == 'toVoid' && layui.com.isNotEmpty(o.approvalInfo)){ }}
                <div class="layui-row tooltip">
                    <a class="color-red" href="javascript:" target="_blank">作废原因</a>
                    <div class="tip-box" style="right: 100px">
                        <div class="tip-con" style="width: 240px">
                          {{o.approvalInfo}}
                        </div>
                        <div class="z-arrow z-arrow-left"></div>
                    </div>
                </div>
            {{# } }}
        </td>
    </tr>
    </tbody>
    {{# }); }}
</script>
<script>
    layui.use('refundList', layui.factory('refundList'));
</script>